<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html >
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<style type="text/css">
		.head {
			border-bottom: 1px solid #DDDDDD;
			font-size: 14px;
			font-weight: bold;
			margin-bottom: 8px;
			padding-bottom: 5px;
					
		}
	</style>
</head>
<body class="body" style="padding-top: 60px;" >
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="brand" href="#" style="color: #FFFFFF;">Kaishengit PMS</a>
			</div>
		</div>
	</div>
	
	<div class="container">
		<div class="row">
			<div class="span3">
				<div class="well" style="padding:8px 0;">
					<ul class="nav nav-list">
						<li class="nav-header">新Apple总部项目</li>
						<li class="divider"></li>
						<li >
							<a href="#">
								<i class="icon-home "></i>
								最新动态
							</a>
						</li>
						<li >
							<a href="goal.html">
								<i class="icon-flag"></i>
								目标
							</a>
						</li>
						<li >
							<a href="document.html">
								<i class="icon-folder-open "></i>
								资料库
							</a>
						</li>
						<li >
							<a href="file.html">
								<i class=" icon-file"></i>
								文件共享
							</a>
						</li>
						<li class="active">
							<a href="contact.html">
								<i class=" icon-user icon-white"></i>
								联系人
							</a>
						</li>
						<li >
							<a href="idea.html">
								<i class="icon-fire"></i>
								想法
							</a>
						</li>
						<li >
							<a href="#">
								<i class="icon-warning-sign"></i>
								Bug
							</a>
						</li>
						<li >
							<a href="#">
								<i class="icon-cog"></i>
								项目设置
							</a>
						</li>
					</ul>
				
				</div>
			</div>
			<div class="span9">
				<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
					<li class="active">
						<a href="task.html" >
							<i class="icon-user"></i>
							联系人
						</a>
					</li >
				</ul>
				<div class="wall" >
					<address>
						<h3>${contact.name }</h3>
						<p>${contact.companyname }</p>
						<small>手机</small>
						${contact.mobile }
						<br />
						<small>固话</small>
						${contact.tel }
						<br />
						<br />
						<small>邮箱</small>
						${contact.email }
						<br />
						<small>地址</small>
						${contact.address }
						<br />
						<br />
						<small>主页</small>
						<a href="${contact.website }">${contact.website }</a>
						<br />
						<small>微博</small>
						<a href="${contact.weibo }">@${contact.weiboname }</a>
						<br />
					</address>
					<div style="border-bottom: 1px solid #EEEEEE;margin-bottom: 5px;margin-top: 5px">记录</div>
					
					<form action="project.jspx?m=contactnote&id=${contact.id }" method="post">
						<textarea name="content" id="" class="span5" rows="3"></textarea>
						<br />
						<button class="btn" type="submit">发布</button>
					</form>
					
					<c:choose>
						<c:when test="${empty cnList }">还没有记录 <br/><br/></c:when>
						<c:otherwise>
							<c:forEach items="${cnList}" var="cn">
								<blockquote>
									${cn.content }
									<small>${cn.employee.username }发布于 ${cn.createtime }</small>	
								</blockquote>
							</c:forEach>
						</c:otherwise>
					</c:choose>
					<a href="project.jspx?m=contact" style="padding-bottom:20px">&larr;返回联系人列表</a>
					
				</div>
					
			</div>
		</div>
	</div>
</body>
</html>